﻿@using Roadkill.Core.Configuration;
@{
	// This is a copy of the _ViewStart page found in /Views
	Roadkill.Core.Mvc.Controllers.ControllerBase controller = this.ViewContext.Controller as Roadkill.Core.Mvc.Controllers.ControllerBase;
	ApplicationSettings applicationSettings = controller.ApplicationSettings;

	if (applicationSettings.Installed && !applicationSettings.UpgradeRequired)
	{
		SiteSettings siteSettings = controller.SettingsService.GetSiteSettings();
		Layout = siteSettings.ThemePath + "/Theme.cshtml";
	}
}